home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kbd.postinst < prev    next >
Text File  |  2009-06-24  |  645b  |  37 lines

  1. #! /bin/sh -e
  2.  
  3. # Remove a no-longer used conffile
  4. rm_conffile()
  5. {
  6.     CONFFILE="$1"
  7.     ACTION="$2"
  8.  
  9.     if [ "$ACTION" = rename ]; then
  10.         if [ -e "$CONFFILE" ]; then
  11.             echo "Removing obsolete conffile $CONFFILE"
  12.             rm -f "$CONFFILE"
  13.         fi
  14.     elif [ "$ACTION" = remove ]; then
  15.         if [ -e "$CONFFILE".moved-by-preinst ]; then
  16.             rm -f "$CONFFILE".moved-by-preinst
  17.         fi
  18.     fi
  19. }
  20.  
  21. case $1 in
  22.     configure)
  23.         if dpkg --compare-versions "$2" lt 1.14.1-4ubuntu3; then
  24.             rm_conffile /etc/init.d/console-screen.kbd.sh remove
  25.             update-rc.d -f console-screen.kbd.sh remove
  26.         fi
  27.         ;;
  28. esac
  29.  
  30. if type update-initramfs >/dev/null 2>&1; then
  31.     update-initramfs -u
  32. fi
  33.  
  34.  
  35.  
  36. exit 0
  37.